package com.bbz.sms;
import com.twilio.rest.api.v2010.account.Message;
import com.twilio.Twilio;
import com.twilio.type.PhoneNumber;

public class SendSms {

    public static  void main(String args[]){
        String accountSid = "AC55cacfce1a406e3976763edff898178e"; // Your Account SID from www.twilio.com/user/account
        String authToken = "2d3ff2dcad911f7f1aa295752f85b304"; // Your Auth Token from www.twilio.com/user/account

        Twilio.init(accountSid, authToken);

        Message message = Message.creator(
                new PhoneNumber("+17640380550"),  // To number
                new PhoneNumber("+17014092013"),  // From number
                "Hello world!"                    // SMS body
        ).create();

        System.out.println(message.getSid());
    }
}
